﻿using STHPMS1.ICore.I_Entity;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STHPMS1.ICore.I_DAL.Repository
{
    public interface IE_SegevaluRepository : IDal
    {

        /// <summary>
        /// 更新路段评定中不同指标的值
        /// </summary>
        /// <param name="inspecid">评定名称</param>
        /// <param name="segid">基础路段ID</param>
        /// <param name="rdwayid">路线编号</param>
        /// <param name="type">指标</param>
        /// <param name="value">指标值</param>
        void Update(string inspecid, string segid, string rdwayid, string type, double value);

        /// <summary>
        /// 当前路线下所有路段某个指标的平均值
        /// </summary>
        /// <param name="inspecid">评定名称</param>
        /// <param name="rdwayid">路线编号</param>
        /// <param name="Type">指标</param>
        /// <returns></returns>
        Dictionary<string, double> GetSegidValue(string inspecid, string rdwayid, string Type);
    }
}
